﻿@model Project_KhuyenMaiVang.Models.IndexModel
@{
    ViewBag.Title = "HinhThucThanhToan";
    Layout = "~/Views/Shared/_LayoutDefault.cshtml";
    Project_KhuyenMaiVang.Models.TinKhuyenMai_SanPham_HinhAnhDTO ChiTietTinKhuyenMai = ViewBag.ThongTinChiTietTinKhuyenMai;
    List<Project_KhuyenMaiVang.Models.TinKhuyenMai_SanPham_HinhAnhDTO> ListKhuyenMaiHot = ViewBag.DSKhuyenMaiHot;
    Model.MaThanhPho = (int) Session["MaKhuVuc"];
}


<div id="ChiTietSanPham" align="center">
@if (Model.ThongTinGiaoHangModel.ThongTinDonDatHang.MaHinhThucThanhToan == 2)
{
    <p style="font-weight: bold;color: darkgreen;font-size: 18px" >Bạn đã thanh toán thành công bằng hình thức thanh toán trực tiếp, chúng tôi sẽ vận chuyển mặt hàng tới trong thời gian sớm nhất.</p>
}
else if (Model.ThongTinGiaoHangModel.ThongTinDonDatHang.MaHinhThucThanhToan == 1)
{
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <table align="center" width="70%" border="0">
     <tr>
         <td align="center"><p style="font-weight: bold;font-size: 16px">Thanh toán qua paypal:</p></td>
         <td align="center">
             
             <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="HZDDUXURFXT8Y">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>


         </td>
     </tr>
    </table>  
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
}
else if (Model.ThongTinGiaoHangModel.ThongTinDonDatHang.MaHinhThucThanhToan == 3)
{
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <table align="center" width="70%" border="0">
     <tr>
         <td align="center"><p style="font-weight: bold;font-size: 16px">Thanh toán qua cổng ngân lượng:</p></td>
    <td align="center"><a target="_blank" href="https://www.nganluong.vn/button_payment.php?receiver=minhduongkhtn@gmail.com&product_name=DuLichDacLac&price=500000&return_url=#&comments=ádfasdf" ><img src="https://www.nganluong.vn/data/images/buttons/11.gif"  border="0" /></a> </td>
     </tr>
    </table>  
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
}

</div> 
  

<div class="ListSanPhamCungLoai">
    
      <div class="ListKhuyenMaiHot_TieuDe">
        <div align="center"><strong>Khuyễn mãi <span class="style11">HOT</span></strong></div>
      </div>
      <div class="HinhHotDeal"><img src="@Url.Content("~/Content/Images/hotdeal.png")" width="103" height="40" /></div>
    <p>&nbsp;</p>
    
          <div class="ListTinKhuyenMaiHot">
          @foreach(var Item in ListKhuyenMaiHot)
          {
              String tenhinh;              

              if (Item.ListHinhAnh.Count > 0)
              {
                  tenhinh = Item.ListHinhAnh[0].TenHinhAnh;
              }
              else
              {
                  tenhinh = "cafe.jpg";
              }
              var PTGiamGia = (int) ((float) (Item.GiaGoc - Item.GiaKhuyenMai)/Item.GiaGoc*100);
            <div class="MauTinKhuyenMaiHot">      	
                <div class="MauTinKhuyenMai_TieuDe">@Html.ActionLink(Item.TenSanPham, "XemChiTietSanPham", new { idSanPham = Item.MaTinKhuyenMai })</div>        
              <div class="MauTinKhuyenMai_HinhAnh"><img src="@Url.Content("~/Content/Images/"+tenhinh)" width="227" height="130" /></div>
              <div class="MauTinKhuyenMai_PhanTram">
                  <p align="center"><br/>Giảm<br />
                      @PTGiamGia%
                  </p>
              </div>
              <div class="MauTinKhuyenMai_GiaBan">
                  <div class="MauTinKhuyenMai_Gia">@Item.GiaKhuyenMai<br />
                      VNĐ</div>
              </div>
          </div>  
          }
           
                                           
      </div>
    
</div>
  <div class="clearboth"></div>
  
